<?php

use yii\helpers\Html;
use kartik\widgets\ActiveForm;
use kartik\builder\Form;
use kartik\datecontrol\DateControl;

/**
 * @var yii\web\View $this
 * @var backend\modules\syscfg\models\Pubsysctrlinfo $model
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="pubsysctrlinfo-form">

    <?php $form = ActiveForm::begin(['type'=>ActiveForm::TYPE_HORIZONTAL]); echo Form::widget([

    'model' => $model,
    'form' => $form,
    'columns' => 1,
    'attributes' => [

'DEBUGLOGLVL'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 调试信息...']], 

'BRC'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 机构号...', 'maxlength'=>3]], 

'CRY'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 本币币种...', 'maxlength'=>3]], 

'ARBCRY'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 折算币种...', 'maxlength'=>3]], 

'SYSSTATUS'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 系统状态...', 'maxlength'=>1]], 

'TRANDATE'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 记账日期...', 'maxlength'=>10]], 

'PREDATE'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 前一日期...', 'maxlength'=>10]], 

'NEXTDATE'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 下一日期...', 'maxlength'=>10]], 

'ACCDATE'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 总账日期...', 'maxlength'=>10]], 

'YEARENDDATE'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 年终决算日...', 'maxlength'=>10]], 

'FLAG'=>['type'=> Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter 清算标志...', 'maxlength'=>8]], 

    ]


    ]);
    echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
    ActiveForm::end(); ?>

</div>
